﻿#ifndef NATIVEEVENT_H
#define NATIVEEVENT_H

#include <QAbstractNativeEventFilter>
#include <QWidget>

class QTimer;

class NativeEvent :public QWidget, public QAbstractNativeEventFilter
{
    Q_OBJECT
public:
    NativeEvent();
    virtual ~NativeEvent();
signals:
    void devUpdate();
protected:
    bool nativeEventFilter(const QByteArray &eventType, void *message, long *) override;

//    void timerEvent(QTimerEvent *event);
private:
    QTimer * m_timer = nullptr;

};

#endif // NATIVEEVENT_H
